<?php 

/**
*Form Builder & Admin Generator

*@author marcio <opi14@op.pl>, <polishvodka7@gmail.com>
*@copyright Copyright (c) 2011, marcio
*@version 1.6.5
*/

require_once('abstract/Form_Element.php');
require_once('libraries/Form.php');

class YesNo extends Volta_Form_Element
{

	/**
	*Metoda zwraca kod html elementu
	*@access public 
	*@return string
	*/
	public function render()
	{
		$values = array('yes', 'no');
		foreach($values as $val)
			$option .=  Volta_Form::radio($this -> label, $val);
			
		return $option;
	}
}

?>